#!/bin/sh

ver_old="$2"

if [ "$(apk version -t "$ver_old" '1.7.8-r1')" = '<' ]; then
	if [ "$(stat -c %U:%G /var/log/rspamd)" = 'root:rspamd' ]; then
		chown rspamd:rspamd /var/log/rspamd
	fi
fi

exit 0
